<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'coupon-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">注：带 <span class="required">*</span> 的是必填项.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'id'); ?>
		<?php echo $form->textField($model,'id',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'user_id'); ?>
		<?php echo $form->textField($model,'user_id',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'user_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'partner_id'); ?>
		<?php echo $form->textField($model,'partner_id',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'partner_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'team_id'); ?>
		<?php echo $form->textField($model,'team_id',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'team_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'order_id'); ?>
		<?php echo $form->textField($model,'order_id',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'order_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'secret'); ?>
		<?php echo $form->textField($model,'secret',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'secret'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'consume'); ?>
		<?php echo $form->dropDownList($model,'consume',array('Y'=>'YES','N'=>'NO')); ?>
		<?php echo $form->error($model,'consume'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'expire_time'); ?>
		<?php echo $form->textField($model,'expire_time',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'expire_time'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'consume_time'); ?>
		<?php echo $form->textField($model,'consume_time',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'consume_time'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'create_time'); ?>
		<?php echo $form->textField($model,'create_time',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'create_time'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? '创建' : '保存'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->